<template>
  <div>
    <h2>{{title}}</h2>
    <hr>
    <div>
      <slot></slot>
    </div>
    <hr>
    <p>
      <slot name="content">
        <h4>插槽的默认内容</h4>
      </slot>
    </p>
  </div>
</template>

<script>
export default {
  name: 'SlotTest',
  props: ['title']
}
</script>

<style scoped>

</style>
